package com.yyf.springboot2.service;

import com.yyf.springboot2.entity.TOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yyf.springboot2.entity.TOrderlist;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yyf
 * @since 2019-05-29
 */
public interface TOrderService extends IService<TOrder> {

    Integer saveOrder(TOrder order, List <TOrderlist> goodsJsonStr);

    List<TOrder> getListByTypeAdUser(Integer id, Integer type, Integer page, Integer pageSize);

    Integer payOrder(Integer userId, Integer orderId);
}
